.PHONY:all
all:p1 p2
p1:p1.c
	gcc -o $@ $^
p2:p2.c
	gcc -o $@ $^
.PHONY:clean
clean:
	rm -r p1 p2
	
